package com_fit.springboot_fit.repository;


import com_fit.springboot_fit.entity.AdminUser;
import com_fit.springboot_fit.entity.AdminUserGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminUserGroupRepository extends JpaRepository<AdminUserGroup, Integer> {

    // 查询未禁用的用户组
    List<AdminUserGroup> findByIsDisable(AdminUser.YesNoEnum isDisable);
}
